package com.shj.em.biz.purchase.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.Version;
import com.shj.em.base.entity.BaseEntity;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采购表
 * </p>
 *
 * @author Shen Huang Jian
 * @since 2018-11-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("oa_purchase")
public class Purchase extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 采购单号
     */
    private String purchaseNo;

    /**
     * 采购日期
     */
    private Date purchaseDt;

    /**
     * 供应商
     */
    private Long companyId;

    /**
     * 联系人
     */
    private Long contactId;

    /**
     * 采购金额
     */
    private BigDecimal amount;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 单位
     */
    private String unit;


}
